package item;

import player.Player;
import io.ClientSession;
import io.ClientSessionAsyncCall;
import io.Packet;

public abstract class StoreHouseCall extends ClientSessionAsyncCall {
    protected Packet packet;
    protected Player player;

	public StoreHouseCall(Packet packet, ClientSession session) {
		super(session);
		this.packet = packet;
		player = (Player) session.getClient();
	}

	@Override
	public void callFinish() throws Exception {
		
	}

	@Override
	public void run() {
		if(player != null){
				execute();
		}
	}
	protected abstract void execute();
}
